﻿using DotNetCore.CAP;

namespace CapHttp.Core;

public interface IDistributedEventPublisher
{
    ICapPublisher CapPublisher { get; }
    
    Task PublishAsync<T>(string name, T eventData);

    Task PublishAsync<T>(T eventData);
    
    void Publish<T>(string name, T eventData);
    
    void Publish<T>(T eventData);
}